using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using HRM.Models.Mapping;

namespace HRM.Models
{
    public partial class HRMTTNS41Context : DbContext
    {
        static HRMTTNS41Context()
        {
            Database.SetInitializer<HRMTTNS41Context>(null);
        }

        public HRMTTNS41Context()
            : base("Name=HRMTTNS41Context")
        {
        }

        public DbSet<dk_CTGiangDay> dk_CTGiangDay { get; set; }
        public DbSet<dk_CTKhac> dk_CTKhac { get; set; }
        public DbSet<dk_GiangDayNgoaiTruong> dk_GiangDayNgoaiTruong { get; set; }
        public DbSet<dk_HDHocThuat> dk_HDHocThuat { get; set; }
        public DbSet<dk_NCTrinhDo> dk_NCTrinhDo { get; set; }
        public DbSet<dk_QLSuPham> dk_QLSuPham { get; set; }
        public DbSet<dm_dk_CTKhac> dm_dk_CTKhac { get; set; }
        public DbSet<dm_dk_HDHocThuat> dm_dk_HDHocThuat { get; set; }
        public DbSet<dm_dk_QLSuPham> dm_dk_QLSuPham { get; set; }
        public DbSet<dm_tk_CTKhac> dm_tk_CTKhac { get; set; }
        public DbSet<dm_tk_HDHocThuat> dm_tk_HDHocThuat { get; set; }
        public DbSet<dm_tk_QLSuPham> dm_tk_QLSuPham { get; set; }
        public DbSet<DonVi> DonVis { get; set; }
        public DbSet<DotDK_TK> DotDK_TK { get; set; }
        public DbSet<NhanVien> NhanViens { get; set; }
        public DbSet<NhomNguoiDung> NhomNguoiDungs { get; set; }
        public DbSet<tk_CTGiangDay> tk_CTGiangDay { get; set; }
        public DbSet<tk_CTKhac> tk_CTKhac { get; set; }
        public DbSet<tk_HDHocThuat> tk_HDHocThuat { get; set; }
        public DbSet<tk_NCTrinhDo> tk_NCTrinhDo { get; set; }
        public DbSet<tk_QLSuPham> tk_QLSuPham { get; set; }
        //public DbSet<UserProfile> UserProfiles { get; set; }
        public DbSet<webpages_Membership> webpages_Membership { get; set; }
        public DbSet<webpages_OAuthMembership> webpages_OAuthMembership { get; set; }
        public DbSet<webpages_Roles> webpages_Roles { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new dk_CTGiangDayMap());
            modelBuilder.Configurations.Add(new dk_CTKhacMap());
            modelBuilder.Configurations.Add(new dk_GiangDayNgoaiTruongMap());
            modelBuilder.Configurations.Add(new dk_HDHocThuatMap());
            modelBuilder.Configurations.Add(new dk_NCTrinhDoMap());
            modelBuilder.Configurations.Add(new dk_QLSuPhamMap());
            modelBuilder.Configurations.Add(new dm_dk_CTKhacMap());
            modelBuilder.Configurations.Add(new dm_dk_HDHocThuatMap());
            modelBuilder.Configurations.Add(new dm_dk_QLSuPhamMap());
            modelBuilder.Configurations.Add(new dm_tk_CTKhacMap());
            modelBuilder.Configurations.Add(new dm_tk_HDHocThuatMap());
            modelBuilder.Configurations.Add(new dm_tk_QLSuPhamMap());
            modelBuilder.Configurations.Add(new DonViMap());
            modelBuilder.Configurations.Add(new DotDK_TKMap());
            modelBuilder.Configurations.Add(new NhanVienMap());
            modelBuilder.Configurations.Add(new NhomNguoiDungMap());
            modelBuilder.Configurations.Add(new tk_CTGiangDayMap());
            modelBuilder.Configurations.Add(new tk_CTKhacMap());
            modelBuilder.Configurations.Add(new tk_HDHocThuatMap());
            modelBuilder.Configurations.Add(new tk_NCTrinhDoMap());
            modelBuilder.Configurations.Add(new tk_QLSuPhamMap());
            //modelBuilder.Configurations.Add(new UserProfileMap());
            modelBuilder.Configurations.Add(new webpages_MembershipMap());
            modelBuilder.Configurations.Add(new webpages_OAuthMembershipMap());
            modelBuilder.Configurations.Add(new webpages_RolesMap());
        }
    }
}
